<div class="layui-body">
    <!-- 主体区域开始 -->
    <!--当前位置开始-->
    <div class="layui-card layadmin-header">
        <span class="layui-breadcrumb">
            <a href="{:url('Index/index')}">系统</a>
            <a href="{:url('Content/index')}">新闻管理</a>
            <a><cite>添加</cite></a>
        </span>
    </div>
    <!--当前位置结束-->
    <div class="layui-row">
        <div id="head">
            <div class="layui-row">
                <div class="layui-col-md2 layui-col-md-offset10" id="head-right">
                    <a href="{:url('Content/index')}" class="layui-btn layui-btn-normal" title="返回列表">返回列表</a>
                </div>
            </div>
        </div>
        <div id="main">
            <form class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">栏目</label>
                    <div class="layui-input-block">
                        <select name="type">
                            {volist name='nav' id='v'}
                            <option value="{$v.id}">{$v.title}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">标题</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" required lay-verify="required" lay-reqText="请输入标题" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">关键字</label>
                    <div class="layui-input-block">
                        <input type="text" name="keywords" lay-reqText="请输入关键字"  placeholder="请输入关键字" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">描述</label>
                    <div class="layui-input-block">
                        <textarea name="represent" maxlength="100" class="layui-textarea" placeholder="请输入描述内容"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">封面</label>
                    <div class="layui-input-inline">
                        <button type="button" class="layui-btn layui-btn-primary" id="upload">
                            <i class="layui-icon layui-icon-upload-drag"></i>上传图片
                        </button>
                        <img src="" id="imgShow" class="uploadImg layui-hide">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <button class="layui-btn layui-btn-xs layui-btn-primary" id="history">历史图片</button>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">封面路径</label>
                    <div class="layui-input-block">
                        <input type="text" name="cover" id="litPic" class="layui-input" placeholder="自定义图片路径">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">浏览量</label>
                    <div class="layui-input-inline">
                        <input type="number" name="views" placeholder="请输入浏览量" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        <input type="checkbox" name="view_rand" id="viewRand" lay-skin="switch" lay-text="随机开启|随机关闭">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">标签</label>
                    <div class="layui-input-block">
                        <input type="text" name="tag" required lay-verify="required" lay-reqText="请输入标签，多标签使用中文逗号分隔"  placeholder="请输入标签，多标签使用中文逗号分隔" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">推荐</label>
                    <div class="layui-input-block">
                        <input type="radio" name="recommend" value="1" title="是" required lay-verify="required">
                        <input type="radio" name="recommend" value="0" title="否" checked required lay-verify="required">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">发布时间</label>
                    <div class="layui-input-inline">
                        <input type="text" name="create_time" id="create_time" class="layui-input" autocomplete="off" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">发布状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" title="正常" checked required lay-verify="required">
                        <input type="radio" name="status" value="0" title="定时" required lay-verify="required">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        <!-- 加载编辑器的容器 -->
                        <textarea name="content" id="container" required lay-verify="required" lay-reqText="请输入内容"  style="width: 730px;height: 600px;"></textarea>
                        <!-- 配置文件 -->
                        <script type="text/javascript" src="/ph/ueditor/ueditor.config.js"></script>
                        <!-- 编辑器源码文件 -->
                        <script type="text/javascript" src="/ph/ueditor/ueditor.all.js"></script>
                        <!-- 实例化编辑器 -->
                        <script type="text/javascript">var ue1 = UE.getEditor('container');</script>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="request_url" value="{:url('Content/data_save')}">
                        <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--主体区域结束-->
</div>